package com.uw.uwrpc.core.api;

import org.springframework.lang.Nullable;

public interface Filter {

    default boolean before(RpcRequest request, RpcResponse response) {
        return true;
    }

    default void after(RpcRequest request, RpcResponse response) {
    }

    default void afterCompletion(RpcRequest request, RpcResponse response, @Nullable Exception ex) {
    }

}
